<?php if( !empty($tree) ): ?>

    <?php echo link_to(
                    image_tag(
                        'tree.png'
                        , array(
                            'border' => '0'
                            , 'alt' => __('Back to tree')
                            , 'title' => __('Back to tree')
                        )
                    )
                    , 'tree/list?id=' . $tree->getId()
                ) ?> <?php echo link_to(
                    image_tag(
                        'pencil.png'
                        , array(
                            'border' => '0'
                            , 'alt' => __('System info')
                            , 'title' => __('System info')
                        )
                    )
                    , 'tree/edit?id=' . $tree->getId()
                ) ?>


<?php endif; ?>

<?php if($sf_params->get('pageId')): ?>
    <?php echo input_hidden_tag('pageId', $sf_params->get('pageId')) ?>
    <?php echo link_to(
                    image_tag(
                        'arrow_back.png'
                        , array(
                            'alt' => __('back')
                            , 'title' => __('back')
                        )
                    )
                , 'pages/edit?id=' . $sf_params->get('pageId')
    ) ?>
<?php endif; ?>